package com.deluxelx.soul.inn.mapper.user;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.deluxelx.soul.inn.bean.user.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户持久层类
 *
 * @author: zihao.liao
 * @date: 2024/1/18 23:23
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    /**
     * 根据账号查询用户
     * @param account 账号
     * @return 用户
     */
    Integer selectByAccount(@Param("account") String account);
    /**
     * 登录验证
     * @param account 账号
     * @param password 密码
     * @return 验证结果
     */
    Integer loginCheck(@Param("account") String account,
                       @Param("password") String password);

}
